import Vue from 'vue'
Vue.directive('dif_height', {
  bind (el, binding) {
    const { value } = binding
    window.onresize = function () {
      var winHeight = `${document.documentElement.clientHeight}`
      console.log(winHeight)
      if (winHeight > 650) {
        document.querySelector(el).style.height = value
      } else {
        document.querySelector(el).style.height = value
      }
    }
  }
})
